package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.shopping.model.ShoppingCommitGoods;
/**
* 提交订单
* @author wliu
* edit tse
*/
public class ShoppingCommitResponse extends RudderResponse{

private String orderId = "";


private String total = "";


private String prePayId = "";


private List<ShoppingCommitGoods> goods = new ArrayList<ShoppingCommitGoods>();


private String preGroupOrder = "";


private String subTax = "";


private String subFee = "";


/**
* @return orderId
*/
public String getOrderId() {
return this.orderId;
}

/**
* @return orderId
*/
public void setOrderId(String orderId) {
this.orderId = orderId;
}
/**
methodName    OrderId
type          String
name          orderId
defaultType   ""
*/

/**
* @return total
*/
public String getTotal() {
return this.total;
}

/**
* @return total
*/
public void setTotal(String total) {
this.total = total;
}
/**
methodName    Total
type          String
name          total
defaultType   ""
*/

/**
* @return prePayId
*/
public String getPrePayId() {
return this.prePayId;
}

/**
* @return prePayId
*/
public void setPrePayId(String prePayId) {
this.prePayId = prePayId;
}
/**
methodName    PrePayId
type          String
name          prePayId
defaultType   ""
*/

/**
* @return goods
*/
public List<ShoppingCommitGoods> getGoods() {
return this.goods;
}

/**
* @return goods
*/
public void setGoods(List<ShoppingCommitGoods> goods) {
this.goods = goods;
}
/**
methodName    Goods
type          List<ShoppingCommitGoods>
name          goods
defaultType   new ArrayList<ShoppingCommitGoods>()
*/

/**
* @return preGroupOrder
*/
public String getPreGroupOrder() {
return this.preGroupOrder;
}

/**
* @return preGroupOrder
*/
public void setPreGroupOrder(String preGroupOrder) {
this.preGroupOrder = preGroupOrder;
}
/**
methodName    PreGroupOrder
type          String
name          preGroupOrder
defaultType   ""
*/

/**
* @return subTax
*/
public String getSubTax() {
return this.subTax;
}

/**
* @return subTax
*/
public void setSubTax(String subTax) {
this.subTax = subTax;
}
/**
methodName    SubTax
type          String
name          subTax
defaultType   ""
*/

/**
* @return subFee
*/
public String getSubFee() {
return this.subFee;
}

/**
* @return subFee
*/
public void setSubFee(String subFee) {
this.subFee = subFee;
}
/**
methodName    SubFee
type          String
name          subFee
defaultType   ""
*/

/**


    private static void filterFor(ShoppingCommitGoods shopping) {
        if (shopping.getGoodsId() == null) {
            shopping.setGoodsId("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
        if (shopping.getPrice() == null) {
            shopping.setPrice("");
        }
        if (shopping.getQuantity() == null) {
            shopping.setQuantity("");
        }
        if (shopping.getCat() == null) {
            shopping.setCat("");
        }
    }

    public static void filter(ShoppingCommitResponse shopping) {
        if (shopping.getOrderId() == null) {
            shopping.setOrderId("");
        }
        if (shopping.getTotal() == null) {
            shopping.setTotal("");
        }
        if (shopping.getPrePayId() == null) {
            shopping.setPrePayId("");
        }
        if (shopping.getGoods() == null) {
            shopping.setGoods(new ArrayList<ShoppingCommitGoods>());
        } else {
            for (ShoppingCommitGoods item : shopping.getGoods()) {
                filterFor(item);
            }
        }
        if (shopping.getPreGroupOrder() == null) {
            shopping.setPreGroupOrder("");
        }
        if (shopping.getSubTax() == null) {
            shopping.setSubTax("");
        }
        if (shopping.getSubFee() == null) {
            shopping.setSubFee("");
        }
    }

*/

}
